Valid for Sitecore
5.3.1
15.
Simple Types - Text, Icon, ValueLookup, Tristate, Html, Memo and Rich Text
Prev |
These field types are stored as simple types.
Resolve the value by using raw data extraction:
// Text, Icon, ValueLookup, Tristate, Html, Memo, Rich Text
public static string outText(Sitecore.Data.Items.Item item, string sFieldName)
{
System.Text.StringBuilder builder = new System.Text.StringBuilder();
builder.Append("Plain text: " + item.Fields[sFieldName]);
return builder.ToString();
}
- For Text, Memo, RichText and HTML the values are the same as entered from within the client.
- Tristate can be blank, 0 or 1
- Valuelookup can be blank or the text value of the item selected in the dropdown
- Icon is the path to the item, e.g. sitecore/shell/themes/standard/carousel.css
Prev